package com.situ.mall.api.product;

import com.situ.mall.common.util.Result;
import com.situ.mall.pojo.VO.IdVO;
import com.situ.mall.pojo.entity.product.Product;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient(value = "product-service")
public interface  ProductClient {

    @GetMapping("/product/selectById/{id}")
    Result<Product> selectById(@PathVariable Long id);

    @GetMapping("/product/selectIds")
    Result<List<IdVO>> selectIds();
}
